#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
	int number[10] = { 0 };
	for (int i = 0; i < 10; i++) {
		scanf("%d", &number[i]);
	}
	int max = number[0];
	for (int i = 0; i < 10; i++) {
		if (max < number[i]) {
			int t = max;
			max = number[i];
			number[i] = t;
		}
	}
	printf("%d", max);
	return 0;
}